package com.xiang.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 简单队列模式（无需绑定交换机）
 *
 * @author: xiangtianlei
 * @Date: 2022-9-8
 */
@Configuration
public class RabbitMqSimpleConfig {
    public static final String SIMPLE_QUEUE = "simple_queue";

    @Bean
    public Queue miaoShaQueue() {
        return new Queue(SIMPLE_QUEUE, true);
    }
}
